<?php

namespace EasyWorkflowBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Class Session
 * @package EasyWorkflowBundle\Entity
 * @ORM\Table(name="sessions")
 * @ORM\Entity
 */
class Session
{
    /**
     * @var string
     *
     * @ORM\Column(name="sess_id", type="string", length=128)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $sessId;

    /**
     * @var string
     *
     * @ORM\Column(name="sess_data", type="blob", length=65535, nullable=false)
     */
    private $sessData;

    /**
     * @var integer
     *
     * @ORM\Column(name="sess_time", type="integer", nullable=false, options={"unsigned"=true})
     */
    private $sessTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="sess_lifetime", type="integer", nullable=false)
     */
    private $sessLifetime;

    /**
     * @return string
     */
    public function getSessId()
    {
        return $this->sessId;
    }

    /**
     * @param string $sessId
     */
    public function setSessId($sessId)
    {
        $this->sessId = $sessId;
    }

    /**
     * @return string
     */
    public function getSessData()
    {
        return $this->sessData;
    }

    /**
     * @param string $sessData
     */
    public function setSessData($sessData)
    {
        $this->sessData = $sessData;
    }

    /**
     * @return int
     */
    public function getSessTime()
    {
        return $this->sessTime;
    }

    /**
     * @param int $sessTime
     */
    public function setSessTime($sessTime)
    {
        $this->sessTime = $sessTime;
    }

    /**
     * @return int
     */
    public function getSessLifetime()
    {
        return $this->sessLifetime;
    }

    /**
     * @param int $sessLifetime
     */
    public function setSessLifetime($sessLifetime)
    {
        $this->sessLifetime = $sessLifetime;
    }
}